<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>添加</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
  <link rel="stylesheet" href="__CSS__/common/layui.form.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">

</head>
<body>
     <div class="layui-container" style="padding:2%">
        <form class="layui-form layui-clear" action="{:url('duty/news/add')}" method="post">
          
          

            <div class="layui-form-item">
                    <label class="layui-form-label">新闻标题&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-block rele-Title" data-rele="" style="width: 800px;">
                        <input class="layui-input" name="title" data-set="title" type="text" placeholder="请输入标题" lay-verify="required" />
                    </div>
                </div>

                            <!--第2行-->
            <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">新闻摘要&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-block" style="width: 800px;">
                        <input class="layui-input" name="summary" data-set="summary" type="text" placeholder="请输入摘要" lay-verify="required" />
                    </div>
            </div>

                            <!--第3行-->
                <div class="layui-form-item">
                    <label class="layui-form-label">类别&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-block" style="width: 800px;">
                       <select class="typeId" name="typeId" lay-verify="required">
                            <option value=""></option>
                            {volist name="type" id="item" key="k"}
                            <option value="{$k}">{$item}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
            
                            <!--第4行-->
                <!-- <div class="layui-form-item">
                    <label class="layui-form-label">事件&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-block" style="width: 800px;">
                        <select name="eventId">
                            <option value="0">请选择</option>
                        </select>
                    </div>
                </div> -->
                
             <div class="layui-form-item layui-form-text">
                
                    <label class="layui-form-label">详细内容&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                <div class="layui-input-block" id="editor" >  
                          <textarea id="detail" style="display: none;" name="detail"></textarea>
               </div>
               </div>

                <div class="layui-form-item">
                   <label class="layui-form-label">有效性</label>
                   <div class="layui-input-block">
                       <input type="checkbox" checked="" name="isValid" lay-skin="switch"  lay-text="有效|无效">
                   </div>
                </div>
            
	   			<div class="layui-form-item">
	                    <div class="layui-input-block">
	                         <button class="layui-btn btn-green" id="save" lay-submit lay-filter="save">保 存 </button>
	                         <button class="layui-btn layui-btn-primary" type="reset">重 置</button>
	                    </div>
	            </div>
        </form>
    </div>  

    <script type="text/javascript" src="__LAYUI__/layui.js"></script>
    <script type="text/javascript" src="__EDITOR__/wangEditor.min.js"></script>
    <script type="text/javascript" src="__JS__/duty/news.js"></script>
   

  </body>
</html>

